package com.gongj.mybatisplus.entity;
import	java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: mybatis-plus
 * @description:
 * @author: gongj
 * @Description: TODO
 * @create: 2020-06-25 10:47
 **/
//生成getter,setter等函数
@Data
//生成全参数构造函数
@AllArgsConstructor
//生成无参构造函数
@NoArgsConstructor
public class User {
    private Long id;
    private String userName;
    private Integer age;
    private String email;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Version
    private Integer version;

    @TableLogic
    private Integer deleted;

    private Long cid;
    @TableField(exist = false)
    private List<Card> cards;
}
